<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="div1">111</div>
  <script>
    var oDiv1 = document.getElementById("div1")
    oDiv1.addEventListener("click", function() {
      alert("div1")
    }, false)
    oDiv1.addEventListener("click", show, false)

    oDiv1.removeEventListener("click", show);

    function show() {
      alert("2222")
    }
  </script>
</body>
</html>